<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=BIG5">
    <title>Success</title>

</head>
<body>
    <h2>Success!!!</h2><br/>
    
    <div>
        <table border="1">
            <tr>
                <th>&nbsp;</th>
                <th>Employee No</th>
                <th>Name</th>
                <th>Department</th>
                <th>Sex</th>
                <th>Birthday</th>
                <th>Address</th>
                <th>Zip</th>
                <th>Create Date</th>
            </tr>
            
            <c:forEach var="employee" items="${employeeModel.employees}" varStatus="s">
            <tr>
                <td>${s.index+1}&nbsp;</td>
                <td>${employee.empNo}&nbsp;</td>
                <td>${employee.name}&nbsp;</td>
                <td>${employee.deptNo}&nbsp;</td>
                <td>${employee.sex}&nbsp;</td>
                <td>${employee.birthday}&nbsp;</td>
                <td>${employee.address}&nbsp;</td>
                <td>${employee.zip}&nbsp;</td>
                <td><fmt:formatDate value="${employee.createDate}" pattern="yyyy/MM/dd"/>&nbsp;</td>
            </tr>
            </c:forEach>
        </table>
    </div><br/>
    
    <a href="<%=request.getContextPath()%>/employee.do">Go Back....</a>
</body>
</html>